import layout from '../../layout/components/index.vue'
import layout2 from '../../layout/componentstwe/index.vue'
import login from '../../views/Login/loginbs.vue'
// 动态路由
export default [
      {
        path: '/',
        redirect: '/index',
      },
      {
        path: '/:catchAll(.*)',
        redirect: '/404',
      },
    {
      path: '/404',
      component:() => import(/*@vite-ignore*/'../../views/notpresent/404.vue')
    },
    {
        path: '/',
        component: layout,
        children: [
            {
                path: 'index',
                component:() =>import(/*@vite-ignore*/'../../views/index/index.vue')
            }
        ]
    },
    {
        path: '/Login/loginbs',
        component: login,
        // children: [
        //     {
        //         path: '/Login/loginbs',  
        //         component: () => import(/* @vite-ignore */'../../views/Login/loginbs.vue'),
        //     },
          
        // ]
    },
    {
      path: '/recovery',
      component: layout,
      children: [
          {
              path: '/recovery/recover',  
              component: () => import(/* @vite-ignore */'../../views/recovery/recover.vue'),
          },
        
      ]
  },
    
  {
    path: '/new_list',
    component: layout,
    children: [
        {
            path: '/new_list/newDtlist',  
            component: () => import(/* @vite-ignore */'../../views/new_list/newDtlist.vue'),
        },
        {
          path: '/new_list/newList',  
          component: () => import(/* @vite-ignore */'../../views/new_list/newList.vue'),
      },
    ]
  },
  
  {
    path: '/twohand',
    component: layout,
    children: [
        {
            path: '/twohand/twohands',  
            component: () => import(/* @vite-ignore */'../../views/twohand/twohands.vue'),
        },
        {
          path: '/twohand/hanslist',  
          component: () => import(/* @vite-ignore */'../../views/twohand/hanslist.vue'),
      },
    ]
  },
  
  {
    path: '/guanyu',
    component: layout,
    children: [
        {
            path: '/guanyu/abts',  
            component: () => import(/* @vite-ignore */'../../views/guanyu/abts.vue'),
        },
    ]
  },
  {
    path: '/order',
    component: layout2,
    children: [
        {
            path: '/order/orderinfo',  
            component: () => import(/* @vite-ignore */'../../views/order/orderinfo.vue'),
        },
        {
          path: '/order/warehousi',  
          component: () => import(/* @vite-ignore */'../../views/order/warehousin.vue'),
        },
        {
          path: '/order/destins',  
          component: () => import(/* @vite-ignore */'../../views/order/destination.vue'),
        },
        {
          path: '/order/income',  
          component: () => import(/* @vite-ignore */'../../views/order/income.vue'),
        },
        {
          path: '/order/showex',  
          component: () => import(/* @vite-ignore */'../../views/order/showex.vue'),
        },
        {
          path: '/order/handinfo',  
          component: () => import(/* @vite-ignore */'../../views/order/components/handinfo.vue'),
      },
      {
        path: '/order/sumtable',  
        component: () => import(/* @vite-ignore */'../../views/order/sumtable.vue'),
      },
        {
        path: '/order/orderdetails',  
        component: () => import(/* @vite-ignore */'../../views/order/orderdetails.vue'),
      },
    ]
  },
  
  {
    path: '/account',
    component: layout2,
    children: [
        {
            path: '/account/accounts', 
            component: () => import(/* @vite-ignore */'../../views/account/accounts.vue'),
      },
     
    ]
  },
  
  {
    path: '/enterprise',
    component: layout2,
    children: [
        {
            path: '/enterprise/enterprises', 
            component: () => import(/* @vite-ignore */'../../views/enterprise/enterprises.vue'),
      },
     
    ]
},
]